package com.hdu.dwh.pojos.cube_pojos;

import java.time.LocalDateTime;
import java.util.Set;

import org.jetbrains.annotations.NotNull;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("`cube`")
public class Cube {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String description;

    @NotNull
    private Integer modelId;

    @TableField(exist = false)
    Set<Cuboid> cuboids;

    @TableField(exist = false)
    Set<CubeMetric> metrics;

    @TableField(exist = false)
    Set<Filter> filters;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    private String createdBy;
}
